<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/6
 * Time: 14:40
 */
namespace App\Http\Controllers\Api\Jobs;

use App\Http\Controllers\Controller;
use App\Services\CollectMoneyService;
use App\Services\PersonalAccountWithdrawService;

class TradeQueryJobsController extends Controller
{
    protected $personalAccountWithdrawService;
    protected $collectMoneyService;

    public function __construct(PersonalAccountWithdrawService $personalAccountWithdrawService,
                                CollectMoneyService $collectMoneyService)
    {
        $this->personalAccountWithdrawService = $personalAccountWithdrawService;
        $this->collectMoneyService = $collectMoneyService;
    }

    /**
     * 个人账户余额提现对账
     */
    public function personalAccountWithdrawQuery()
    {
        $this->personalAccountWithdrawService->tradeQueryJobs();
    }

    /**
     * 收银提现对账
     */
    public function collectMoneyWithdrawQuery()
    {
        $this->collectMoneyService->tradeQueryJobs();
    }
}